package com.ytxg.health_management.comment.mapper;

import com.ytxg.health_management.pojo.entity.Comments;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CommentMapper {
    List<Comments> selectComments(Comments comments);
    List<Comments> selectCommentsAll(Comments comments);
    int insertComments(Comments comments);
    int deleteReplyComment(int id);
    int deleteComment(int id);
    int updateLike(int id);
    int updateReplyCount(int id);
    int deleteCommentByArticleId(int articleId);
    List<Integer> selectReplyIds(int id);
    int selectCounts(Comments comments);
}
